<?php
class LoginlogModel extends RelationModel {
	
	   //自动验证
    protected $_validate=array(

    );
    
    /* 自动完成 */
  protected $_auto = array(

    );

	public function addlog($user_id) 
    {
    	$data= [
    		'user_id' => $user_id,  
    	] ;  
        $res = $this->table('loginlog')->data($data)->add(); 
       
    }  

}
?> 